package com.translate.web.param;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.IManuscriptAddParam;

public class ManuscriptAddParam implements IManuscriptAddParam {// 支付管理id

	// 稿件路径
	@NotNull
//	@Pattern(regexp = ValidateCondtionAndMessage.URL_PATTERN, message = ValidateCondtionAndMessage.URL_PATTERN_MSG)
	private String file;
	// 源文件名字
	@NotNull
//	@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
	private String originName;
	
	@NotNull
	@Min(value = 1, message = ValidateCondtionAndMessage.MIN_ID_MSG)
	private Long size;

	public String getFile() {
		return file;
	}

	public void setFile(String file) {
		this.file = file == null ? null : file.trim();
	}

	public String getOriginName() {
		return originName;
	}

	public void setOriginName(String originName) {
		this.originName = originName == null ? null : originName.trim();
	}

	public Long getSize() {
		return size;
	}

	public void setSize(Long size) {
		this.size = size;
	}

}